cmake_minimum_required(VERSION 3.8)
project(code_read_camera)

set(CMAKE_CXX_STANDARD 17)

find_package(ament_cmake REQUIRED)
find_package(rclcpp REQUIRED)
find_package(std_msgs REQUIRED)
find_package(socketcan_interface REQUIRED)
find_package(agv_msgs REQUIRED)
find_package(slam_ros_msgs REQUIRED)
find_package(code_read_camera_msgs REQUIRED)
find_package(tf2 REQUIRED)         
find_package(tf2_geometry_msgs REQUIRED)      
find_package(shared_parameters REQUIRED)
find_package(Boost REQUIRED COMPONENTS system)

include_directories(
  include
)

add_executable(code_read_camera_node src/code_read_camera.cpp)

ament_target_dependencies(code_read_camera_node
  rclcpp
  std_msgs
  socketcan_interface
  agv_msgs
  slam_ros_msgs
  tf2
  tf2_geometry_msgs 
  shared_parameters
  ${PROJECT_NAME}_msgs
)

install(TARGETS code_read_camera_node
  ARCHIVE DESTINATION lib
  LIBRARY DESTINATION lib
  RUNTIME DESTINATION lib/${PROJECT_NAME}
)

install(DIRECTORY launch/
  DESTINATION share/${PROJECT_NAME}/launch
)

ament_export_include_directories(include)
ament_package()